﻿using Volo.Abp.Reflection;

namespace Himp.DataHub.Permissions;

public class DataHubPermissions
{
    /**
     * 目录
     * 菜单
     * 功能
     **/
    //public const string GroupName = "DataHub";
    public const string DeptsGroupName = "Depts";

    public static class DeptGroup
    {
        //部门
        public const string DeptInfo = DeptsGroupName + ".Info";
        public const string DeptInfoCreate = DeptsGroupName + ".Info.Create";
        public const string DeptInfoEdit = DeptsGroupName + ".Info.Edit";
        public const string DeptInfoDelete = DeptsGroupName + ".Info.Delete";
    }

    public static string[] GetAll()
    {
        return ReflectionHelper.GetPublicConstantsRecursively(typeof(DataHubPermissions));
    }
}
